package demo6;

public class Person {
    private Integer id;
    private  String name;
    private Car1 char1;

    public Car1 getChar1() {
        return char1;
    }

    public void setChar1(Car1 char1) {
        this.char1 = char1;
    }

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public  void sayHi(){
        System.out.println("id:"+id+"   "+"name+:"+name+";");
    }
    public void Goto(){
        char1.go();
    }
    public void Person(){

    }

}
